<script>
import Request from './common/request.js'
export default {
	onLaunch: function() {
		console.log('onLaunch')
		var token = uni.getStorageSync('token');
		if (!token) {
			uni.reLaunch({
				url: '/pages/login/login/login'
			});
			return false;
		} else {
			Request.fetchPost('/account/getUserInfo', {}).then(res => {
			}).catch(err => {
			})
		}

	},
}
</script>

<style lang="scss">
	@import "./scss/common.scss";
</style>
